﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title><%=Session["AdminPortalTitle"]%> / Login</title>
    <link href="<%=Session["ActiveTheme"]%>/default.css" rel="stylesheet" type="text/css" />
</head>


<body>
<script type="text/javascript">
    function ClientDoLogin() {
        loginName = document.getElementById("txtLoginName").value;
        password = document.getElementById("txtPassword").value;
        RetValue = Login.ServerSideLogin(loginName, password).value;
        if (RetValue.indexOf("ERROR") != -1) {
            alert(RetValue);
            return;
        }
        UserBackendAspx = Login.GetUserBackendAspx().value;
        window.open(UserBackendAspx, "_self");
    }
</script>
    <form id="frmLogin" runat="server">
        <div class="cssDivLoginMain" align=center>
        <div class=cssDivLogin><asp:PlaceHolder ID="placeHolderContent" runat="server"></asp:PlaceHolder></div>
    </div>
    </form>
</body>
</html>
